include "botcheck.php"; //Not really in use. require_once "functions.php"; require_once "datatypes.php"; InitUser(); include "useronline/addonline.php"; include "dailyhits.php"; CheckMySQL(); $id = $HTTP_GET_VARS["id"]; $type = $HTTP_GET_VARS["type"]; if ($type=="Game") { $table = "flashgames"; $swffolder = "games"; $thumbfolder = "game"; $viewurl = "game"; } else { $table = "flashmovies"; $swffolder = "flash"; $thumbfolder = "flash"; $viewurl = "flashclip"; } $query = "SELECT Id,Title,Author,Category,SeriesID,Views,Rating,URL,Width,Height,Size,Extra,Description,ContentRating,CRExt,UserId,Site,LoadBalance FROM $table WHERE Id = '$id'"; $sqlprev = "SELECT Id FROM $table WHERE Id < '$id' ORDER BY Id DESC LIMIT 1"; $sqlnext = "SELECT Id FROM $table WHERE Id > '$id' LIMIT 1"; $result = MySQL_query($query); $rows = MySQL_fetch_array($result); $id = $rows['Id']; $title = $rows['Title']; $author = $rows['Author']; $category = $rows['Category']; $seriesid = $rows['SeriesID']; $viewsold = $rows['Views']; $rating = $rows['Rating']; $url = $rows['URL']; $width = $rows['Width']; $height = $rows['Height']; $size = $rows['Size']; $extratemp = $rows['Extra']; $extra = urlencode($extratemp); $description = $rows['Description']; $contentrating = $rows['ContentRating']; $crext = $rows['CRExt']; $Fuserid = $rows['UserId']; $loadbalance = $rows['LoadBalance']; if (($Fuserid == 14) || ($Fuserid == 0)) { $Fuserid = -1; } $sitex = $rows['Site']; if (!($sitex)) { $sitex = GetUserInfo ($Fuserid, "Site"); } $views = "$viewsold"+1; $sql = "UPDATE $table SET Views = '$views' WHERE Id = '$id'"; $result = MySQL_query($sql); $result = MySQL_query($sqlprev); $rows = MySQL_fetch_array($result); $prev = $rows['Id']; $result = MySQL_query($sqlnext); $rows = MySQL_fetch_array($result); $next = $rows['Id']; $query = "SELECT ItemName, ItemType, ItemId FROM featured WHERE Type = 'View' ORDER BY Date DESC LIMIT 2"; $result = MySQL_query($query); $rows = MySQL_fetch_array($result); $FItemName1 = $rows['ItemName']; $FItemType1 = $rows['ItemType']; $FItemId1 = $rows['ItemId']; $rows = MySQL_fetch_array($result); $FItemName2 = $rows['ItemName']; $FItemType2 = $rows['ItemType']; $FItemId2 = $rows['ItemId']; $sQuery = "SELECT PrevTitle,PrevLink,NextTitle,NextLink FROM series WHERE Id = '$seriesid'"; $sResult = MySQL_query($sQuery); $sRows = MySQL_fetch_array($sResult); if (mysql_num_rows($sResult) > 0) { $PrevTitle = $sRows['PrevTitle']; $PrevLink = $sRows['PrevLink']; $NextTitle = $sRows['NextTitle']; $NextLink = $sRows['NextLink']; } if ($type=="Game") { $nextlink = "http://www.phrozenflame.com/game/$next"; $prevlink = "http://www.phrozenflame.com/game/$prev"; } else { $nextlink = "http://www.phrozenflame.com/flashclip/$next"; $prevlink = "http://www.phrozenflame.com/flashclip/$prev"; } $thumburl = "http://www.phrozenflame.com/thumbs/$thumbfolder/$id.jpg"; if ($extra=="REDIRECT") { $title2 = urlencode("PhrozenFlame.com - Flash: $title | Author: $author"); $url2 = urlencode($url); header("Location: http://www.phrozenflame.com/redirect.php?url=$url2&title=$title2"); } else if ($extra=="SEND") { header("Location: $url"); } if ($title=="") { if ($next) { header("Location: $nextlink"); } else { if ($prev) { header("Location: $prevlink"); } else { header("Location: http://www.phrozenflame.com"); } } } else { if ((substr($url, 0, 4))!="http") { if ($loadbalance=="Yes") { //$url = "http://www.phrozenflame.net/handle.php?type=" . $swffolder . "&id=" . $id; $url = "http://www.phrozenflame.net/dropzone/$url"; } else { $url = "http://www.phrozenflame.com/$url"; } } ?>
Title: echo($title); ?> | Featured Flash: | ||||
Author: echo($author); ?> | Content Warning: | ||||
Contact | if ($sitex) { ?>Site } else { ?>Site } ?> | Comments | switch($contentrating) { case "UNR": echo("This flash has not been rated for content yet and as such viewers should watch with warning of the unknown."); break; case "G": echo("This flash is appropriate for all audiences. :)"); break; default: echo($crext); } ?> | ||||
Views: echo($views); ?> | |||||
U-Rating: echo($rating); ?> | |||||
FileSize: echo($size); ?> |
|
if ($extra != "EXCLUDEADDS") { include "includes/google.txt"; //include "includes/emini.txt"; } ?> |
:: Flash | |
if ($type=="Game") { ?> Want to play another game? Or watch an animation? } else { ?> Want to watch something else? Or play a game? } ?> | |
if (($width < (630 + 300)) && ($seriesid != 0)) { $query = "(SELECT Id,Title,Time,Type FROM flashmovies WHERE SeriesID = '$seriesid') UNION (SELECT Id,Title,Time,Type FROM flashgames WHERE SeriesID = '$seriesid') ORDER BY Title ASC"; $result = MySQL_query($query); if (mysql_num_rows($result) > 0) { ?> |
Flash in this Series:
if ($PrevTitle) { ?>
** echo($PrevTitle); ?>** |
} } ?>
if ($extra != "EXCLUDEADDS") { include "includes/google.txt"; //include "includes/emini.txt"; } ?> | ||
Author Info: | Description: | |
Flash By This Author:
While( $rows = MySQL_fetch_array($result) ) {
$oid = $rows['Id'];
$otitle = $rows['Title'];
$otype = $rows['Type'];
if ($otype=="flash") { $otype = "flashclip"; }
?>
:: "> echo($otitle); ?> |
if ($description) { echo($description); } else { echo("No description for this flash has been added yet."); } ?> | |
Comments: | ||
$Type = $type; $TypeID = $id; include "commentf.php"; ?> |